<!DOCTYPE html>
<html  lang="zh">
<head>
    <meta charset="utf-8">
<title>类 - Hardy&#39;s blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />



    <meta name="description" content="类的定义1 C# 中类的默认的修饰符是internal">
<meta property="og:type" content="article">
<meta property="og:title" content="类">
<meta property="og:url" content="https://hardy0529.gitee.io/2020/04/29/%E7%B1%BB/index.html">
<meta property="og:site_name" content="Hardy&#39;s blog">
<meta property="og:description" content="类的定义1 C# 中类的默认的修饰符是internal">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://hardy0529.gitee.io/images/og_image.png">
<meta property="article:published_time" content="2020-04-29T08:05:45.000Z">
<meta property="article:modified_time" content="2020-04-29T08:14:29.859Z">
<meta property="article:author" content="Hardy">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://hardy0529.gitee.io/images/og_image.png">





<link rel="alternative" href="/atom.xml" title="类" type="application/atom+xml">



<link rel="icon" href="/images/touxiang.png">


<link rel="stylesheet" href="https://unpkg.com/bulma@0.7.2/css/bulma.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,600|Source+Code+Pro">
<link rel="stylesheet" href="https://unpkg.com/highlight.js@9.12.0/styles/androidstudio.css">


    
    
    
    <style>body>.footer,body>.navbar,body>.section{opacity:0}</style>
    

    
    
    
    <link rel="stylesheet" href="https://unpkg.com/lightgallery@1.6.8/dist/css/lightgallery.min.css">
    <link rel="stylesheet" href="https://unpkg.com/justifiedGallery@3.7.0/dist/css/justifiedGallery.min.css">
    

    
    

<link rel="stylesheet" href="https://unpkg.com/outdatedbrowser@1.1.5/outdatedbrowser/outdatedbrowser.min.css">


    
    
    
    

<link rel="stylesheet" href="/css/back-to-top.css">


    
    
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-126693399-2"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-126693399-2');
</script>


    
    
<script>
var _hmt = _hmt || [];
(function() {
    var hm = document.createElement("script");
    hm.src = "//hm.baidu.com/hm.js?94475e03ba05c6ed0dfa58a851d6c083";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();
</script>

    
    

    
    
<link rel="stylesheet" href="/css/progressbar.css">
<script src="https://unpkg.com/pace-js@1.0.2/pace.min.js"></script>

    
    
    

    
    
    
    
    
        <script type="text/javascript" src="https://js.users.51.la/20079919.js"></script>
    

    
    
    
        <script>
            (function(){
                var bp = document.createElement('script');
                var curProtocol = window.location.protocol.split(':')[0];
                if (curProtocol === 'https'){
               bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
              }
              else{
              bp.src = 'http://push.zhanzhang.baidu.com/push.js';
              }
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(bp, s);
            })();
            </script>
    

    
    
    
        <script>
            (function(){
            var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?428f95ddc1f1e1d2fe658679fcd2092b":"https://jspassport.ssl.qhimg.com/11.0.1.js?428f95ddc1f1e1d2fe658679fcd2092b";
            document.write('<script src="' + src + '" id="sozz"><\/script>');
            })();
        </script>
    

    


<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.2.0"></head>
<body class="is-2-column">
    <nav class="navbar navbar-main">
    <div class="container">
        <div class="navbar-brand is-flex-center">
            <a class="navbar-item navbar-logo" href="/">
            
                <img src="/images/logo.svg" alt="类" height="28">
            
            </a>
        </div>
        <div class="navbar-menu">
            
            <div class="navbar-start">
                
                <a class="navbar-item"
                href="/">首页</a>
                
            </div>
            
            <div class="navbar-end">
                
                
                
                <a class="navbar-item search" title="搜索" href="javascript:;">
                    <i class="fas fa-search"></i>
                </a>
                
            </div>
        </div>
    </div>
</nav>
    
    <section class="section">
        <div class="container">
            <div class="columns">
                <div class="column is-8-tablet is-9-desktop is-9-widescreen has-order-2 column-main"><div class="card">
    
    <div class="card-content article ">
        
        <div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
            <div class="level-left">
                <time class="level-item has-text-grey" datetime="2020-04-29T08:05:45.000Z">2020-04-29</time>
                
                <div class="level-item">
                <a class="has-link-grey -link" href="/categories/C-%E5%9F%BA%E7%A1%80/">C#基础</a>
                </div>
                
                
                <span class="level-item has-text-grey">
                    
                    
                    几秒 读完 (大约 16 个字)
                </span>
                
                
            </div>
        </div>
        
        <h1 class="title is-size-3 is-size-4-mobile has-text-weight-normal">
            
                类
            
        </h1>
        <div class="content">
            <html><head></head><body><h2 id="类的定义"><a href="#类的定义" class="headerlink" title="类的定义"></a>类的定义</h2><p>1 C# 中类的默认的修饰符是internal</p>
</body></html>
        </div>
        
        
        
        
<link rel="stylesheet" href="https://unpkg.com/social-share.js@1.0.16/dist/css/share.min.css">
<script src="https://unpkg.com/social-share.js@1.0.16/dist/js/social-share.min.js"></script>
        
    </div>
</div>



<div class="card">
    <div class="card-content">
        
        <h3 class="menu-label has-text-centered">喜欢这篇文章？打赏一下作者吧</h3>
        
        <div class="buttons is-centered">
            
                
<a class="button is-info donate">
    <span class="icon is-small">
        <i class="fab fa-alipay"></i>
    </span>
    <span>支付宝</span>
    <div class="qrcode"><img src="/images/reward_alipay.png" alt="支付宝"></div>
</a>

                
                
<a class="button is-success donate">
    <span class="icon is-small">
        <i class="fab fa-weixin"></i>
    </span>
    <span>微信</span>
    <div class="qrcode"><img src="/images/reward_weixin.png" alt="微信"></div>
</a>

                
                
                
        </div>
    </div>
</div>



<div class="card card-transparent">
    <div class="level post-navigation is-flex-wrap is-mobile">
        
        <div class="level-start">
            <a class="level level-item has-link-grey  article-nav-prev" href="/2020/04/29/hexo%E7%AE%80%E5%8D%95%E5%91%BD%E4%BB%A4/">
                <i class="level-item fas fa-chevron-left"></i>
                <span class="level-item">hexo简单命令</span>
            </a>
        </div>
        
        
        <div class="level-end">
            <a class="level level-item has-link-grey  article-nav-next" href="/2020/04/29/C-%E4%B8%AD%E7%9A%845%E7%A7%8D%E4%BF%AE%E9%A5%B0%E7%AC%A6/">
                <span class="level-item">C#中的5种修饰符</span>
                <i class="level-item fas fa-chevron-right"></i>
            </a>
        </div>
        
    </div>
</div>



<div class="card">
    <div class="card-content">
        <h3 class="title is-5 has-text-weight-normal">评论</h3>
        
<div id="valine-thread" class="content"></div>
<script src="//cdn.jsdelivr.net/npm/leancloud-storage@3.15.0/dist/av-min.js"></script>
<script src='//unpkg.com/valine@1.3.9/dist/Valine.min.js'></script>
<script>
    new Valine({
        el: '#valine-thread' ,
        notify: false,
        verify: false,
        app_id: 'ATr8nfRUI4gBajhm1KlSEkN5-gzGzoHsz',
        app_key: 'EBMKhI9wI1JSRozxnQgCFrGb',
        placeholder: '发表您的意见，让我们一起交流，共同提高吧...'
    });   
</script>

    </div>
</div>
</div>
                




<div class="column is-4-tablet is-3-desktop is-3-widescreen  has-order-1 column-left is-sticky">
    
        
<div class="card widget">
    <div class="card-content">
        <nav class="level">
            <div class="level-item has-text-centered">
                <div>
                    
                        <figure class="image is-128x128 has-mb-6">
                            <img id="blog-head-img" class="is-rounded" src="/images/touxiang.png" alt="Hardy&#39;s blog">
                        </figure>
                    
                    
                    
                    <p class="is-size-5 is-block" style="margin-top: 10px;">
                        Hardy&#39;s blog
                    </p>
                    
                    
                    
                </div>
            </div>
        </nav>
        <nav class="level is-mobile">
            <div class="level-item has-text-centered is-marginless">
                <div>
                    <p class="heading">
                        文章
                    </p>
                    <p class="title has-text-weight-normal">
                        <a href="/archives/" style="color:black">24</a>
                    </p>
                </div>
            </div>
            <div class="level-item has-text-centered is-marginless">
                <div>
                    <p class="heading">
                        分类
                    </p>
                    <p class="title has-text-weight-normal">
                        <a href="/categories/" style="color:black">6</a>
                    </p>
                </div>
            </div>
            <div class="level-item has-text-centered is-marginless">
                <div>
                    <p class="heading">
                        标签
                    </p>
                    <p class="title has-text-weight-normal">
                        <a href="/tags/" style="color:black">26</a>
                    </p>
                </div>
            </div>
        </nav>
        
        
        
        <div class="level is-mobile">
            
            <a class="level-item button is-white is-marginless" target="_blank"
                title="Github" href="https://github.com/Hardy529">
                
                <i class="fab fa-github"></i>
                
            </a>
            
        </div>
        
    </div>
</div>
    
        
<div class="card widget">
    <div class="card-content">
        <div class="menu">
            <h3 class="menu-label">
                分类
            </h3>
            <ul class="menu-list">
            <li>
        <a class="level is-marginless" href="/categories/ASP-NET%E6%8E%A7%E4%BB%B6/">
            <span class="level-start">
                <span class="level-item">ASP.NET控件</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">12</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/C-%E5%9F%BA%E7%A1%80/">
            <span class="level-start">
                <span class="level-item">C#基础</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">4</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/CSS/">
            <span class="level-start">
                <span class="level-item">CSS</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">2</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/Hexo%E5%8D%9A%E5%AE%A2/">
            <span class="level-start">
                <span class="level-item">Hexo博客</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">3</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/Html/">
            <span class="level-start">
                <span class="level-item">Html</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/%E7%94%B5%E8%84%91%E7%B3%BB%E7%BB%9F%E8%AE%BE%E7%BD%AE/">
            <span class="level-start">
                <span class="level-item">电脑系统设置</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">2</span>
            </span>
        </a></li>
            </ul>
        </div>
    </div>
</div>
    
        
<div class="card widget">
    <div class="card-content">
        <h3 class="menu-label">
            标签云
        </h3>
        <a href="/tags/ASP-NET/" style="font-size: 20px;">ASP.NET</a> <a href="/tags/C/" style="font-size: 15px;">C#</a> <a href="/tags/C-%E5%9F%BA%E7%A1%80/" style="font-size: 15px;">C#基础</a> <a href="/tags/CSS/" style="font-size: 12.5px;">CSS</a> <a href="/tags/WEB%E6%8E%A7%E4%BB%B6/" style="font-size: 17.5px;">WEB控件</a> <a href="/tags/hexo%E5%91%BD%E4%BB%A4/" style="font-size: 10px;">hexo命令</a> <a href="/tags/html/" style="font-size: 10px;">html</a> <a href="/tags/static/" style="font-size: 10px;">static</a> <a href="/tags/%E4%B8%8A%E4%BC%A0%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">上传控件</a> <a href="/tags/%E4%BB%A3%E7%A0%81%E9%AB%98%E4%BA%AE/" style="font-size: 10px;">代码高亮</a> <a href="/tags/%E5%88%97%E8%A1%A8%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">列表控件</a> <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" style="font-size: 10px;">博客搭建</a> <a href="/tags/%E5%8D%A0%E4%BD%8D%E7%AC%A6%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">占位符控件</a> <a href="/tags/%E5%B9%BF%E5%91%8A%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">广告控件</a> <a href="/tags/%E6%97%A5%E5%8E%86%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">日历控件</a> <a href="/tags/%E6%98%BE%E7%A4%BA%E6%96%87%E6%9C%AC%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">显示文本控件</a> <a href="/tags/%E6%B8%85%E6%A5%9A%E6%B5%AE%E5%8A%A8/" style="font-size: 10px;">清楚浮动</a> <a href="/tags/%E7%83%AD%E7%82%B9%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">热点控件</a> <a href="/tags/%E7%BD%91%E9%A1%B5%E8%B7%AF%E5%BE%84/" style="font-size: 10px;">网页路径</a> <a href="/tags/%E8%A1%A8%E6%A0%BC%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">表格控件</a> <a href="/tags/%E8%A7%86%E5%9B%BE%E5%92%8C%E5%A4%9A%E8%A7%86%E5%9B%BE%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">视图和多视图控件</a> <a href="/tags/%E8%AE%BF%E9%97%AE%E4%BF%AE%E9%A5%B0%E7%AC%A6/" style="font-size: 10px;">访问修饰符</a> <a href="/tags/%E8%B6%85%E9%93%BE%E6%8E%A5%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">超链接控件</a> <a href="/tags/%E9%80%89%E6%8B%A9%E5%99%A8%E4%BC%98%E5%85%88%E6%9D%83/" style="font-size: 10px;">选择器优先权</a> <a href="/tags/%E9%9A%90%E8%97%8F%E5%AD%97%E6%AE%B5%E6%8E%A7%E4%BB%B6/" style="font-size: 10px;">隐藏字段控件</a> <a href="/tags/%E9%9D%99%E6%80%81%E7%9A%84/" style="font-size: 10px;">静态的</a>
    </div>
</div>

    
    
        <div class="column-right-shadow  is-sticky">
        
        </div>
    
</div>

                
            </div>
        </div>
    </section>
    <script src="https://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="https://unpkg.com/moment@2.22.2/min/moment-with-locales.min.js"></script>
<script>moment.locale("zh-CN");</script>


    
    
    
    <script src="/js/animation.js"></script>
    

    
    
    
    <script src="https://unpkg.com/lightgallery@1.6.8/dist/js/lightgallery.min.js" defer></script>
    <script src="https://unpkg.com/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js" defer></script>
    <script src="/js/gallery.js" defer></script>
    

    
    

<div id="outdated">
    <h6>Your browser is out-of-date!</h6>
    <p>Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/" target="_blank" rel="noopener">Update
            my browser now </a></p>
    <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
</div>
<script src="https://unpkg.com/outdatedbrowser@1.1.5/outdatedbrowser/outdatedbrowser.min.js" defer></script>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        outdatedBrowser({
            bgColor: '#f25648',
            color: '#ffffff',
            lowerThan: 'flex'
        });
    });
</script>


    
    
    
    

<a id="back-to-top" title="回到顶端" href="javascript:;">
    <i class="fas fa-chevron-up"></i>
</a>
<script src="/js/back-to-top.js" defer></script>


    
    

    
    
    
    

    
    
    
    
    
    <script src="https://unpkg.com/clipboard@2.0.4/dist/clipboard.min.js" defer></script>
    <script src="/js/clipboard.js" defer></script>
    

    
    
    
    
    

    
    
    

    
    
    

    


<script src="/js/main.js" defer></script>
<script>
    $(function(){
        var showing = false;
        var headEnter = false;
        var mouseArea =  $("#knowledge-star");
        var qrcode = $("#knowledge-qrcode");
        var headimg = $("#blog-head-img");
        //var originalSrc = headimg.attr("src");

        function knowStarAnim(show){
            if(show === showing) return;
            showing = show;
            qrcode.stop();
            qrcode.toggle(1000);
        }

        mouseArea.mouseenter(function(){
            knowStarAnim(true);  
        });

        mouseArea.mouseleave(function(){
            knowStarAnim(false);
        });

        function headChangeAnim(enter){
            if(enter === headEnter) return;
            headEnter = enter;
            if(enter){
                $("img").attr("title", function() { return this.src });
                $("img").attr("src", function(){
                    if(this.width < 150){
                        return "https://dp2px.com/images/jok-head.jpg";
                    }else{
                        return this.src;
                    }
                })
            }else{
                $("img").attr("src", function() { return this.title });
                $("img").removeAttr("title");
            }
        }

        headimg.mouseenter(function(){
            headChangeAnim(true);
        });
        headimg.mouseleave(function(){
            headChangeAnim(false);
        });
    });
</script>
    
    <div class="searchbox ins-search">
    <div class="searchbox-container ins-search-container">
        <div class="searchbox-input-wrapper">
            <input type="text" class="searchbox-input ins-search-input" placeholder="想要查找什么..." />
            <span class="searchbox-close ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="searchbox-result-wrapper ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
    (function (window) {
        var INSIGHT_CONFIG = {
            TRANSLATION: {
                POSTS: '文章',
                PAGES: '页面',
                CATEGORIES: '分类',
                TAGS: '标签',
                UNTITLED: '(无标题)',
            },
            CONTENT_URL: '/content.json',
        };
        window.INSIGHT_CONFIG = INSIGHT_CONFIG;
    })(window);
</script>
<script src="/js/insight.js" defer></script>
<link rel="stylesheet" href="/css/search.css">
<link rel="stylesheet" href="/css/insight.css">
    
</body>
</html>